package com.sys.manage.config;


import org.springframework.cache.CacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;

import com.sys.common.AbstractRedisCacheConfigurer;


/*
 * 
 * @author:汪思超
 * @class:redis配置
 * @date:2021.4.29
 * */

@Configuration
public class RedisCacheConfiguration extends AbstractRedisCacheConfigurer {
	
	@Bean
    public CacheManager cacheManager(RedisConnectionFactory redisConnectionFactory){
        return super.cacheManager(redisConnectionFactory);
    }
	
	@Bean
    public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory connectionFactory){
        return super.redisTemplate(connectionFactory);
    }
}
